﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CategoryTree.aspx.cs" Inherits="Sagacity.NC.Web.BaokaoManager.PSchool.CategoryTree" %>


<%@ Register Src="~/Form/TreeCommon.ascx" TagName="TabFormCommon" TagPrefix="uc1" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
      <script type="text/javascript">
        /*-----显示方法名称，设置时在TreeCommon1中调用，指定GridPanel行单击详细信息列和双击时应该调用的方法-----*/
        var showFunctionName = 'showTreeDetailInfo()';

        function showTreeDetailInfo() {
            self.parent.tabCenterPanel.autoLoad.url = "CategoryBaseInfo.aspx?CategoryId=" + selectedNodeId + "&ResourceId=" + self.parent.document.getElementById("hidResouceId").value + "&showStyle=2";
           self.parent.tabCenterPanel.autoLoad.mode = "iframe";
           self.parent.tabCenterPanel.autoLoad.noCache = true;
           self.parent.tabCenterPanel.loadIFrame();
        }
    </script>
</head>
<body>
  <ext:ScriptManager ID="ScriptManager1" CleanResourceUrl="false" runat="server" Theme="Default" />
    <form id="form1" runat="server">
    <div>
      <!--配置信息这儿放Entity中的NHibernate中的主键名，名称，父级-->
        <asp:HiddenField ID="hidkeyId" runat="server" Value="CATEGORY_ID" />
        <asp:HiddenField ID="hidkeyname" runat="server" Value="CATEGORY_NAME" />
        <asp:HiddenField ID="hidparentid" runat="server" Value="PARENTID" />
            <asp:HiddenField ID="hidCode" runat="server" Value="CATEGORY_CODE" />
        <ext:ViewPort ID="ViewPort1" runat="server">
            <Body>
                <ext:BorderLayout ID="BorderLayout1" runat="server">
                    <Center Collapsible="true" Split="true">
                        <ext:Panel ID="panel1" AutoScroll="true" Border="false" runat="server">
                            <Body>
                                <uc1:TabFormCommon ID="TreeFormCommon1" toolstarte="false"  runat="server" />
                            </Body>
                        </ext:Panel>
                    </Center>
                </ext:BorderLayout>
            </Body>
        </ext:ViewPort>
    </div>
        <script language="javascript" type="text/javascript">
            Ext.onReady(function() {
                TreeFormCommon1_TreePanel.root.expand();
            });
    </script> 
    </form>
</body>
</html>